﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MaintenanceService.Common.Scheduler
{
    /// <summary>
    /// Class that implements the interface IServiceScheduler. This allows to choose between inherit from this class,  or implement the interface.
    /// </summary>
    public abstract class ServiceScheduler : IServiceScheduler
    {
        /// <summary>
        /// Gets the service sleep time.
        /// </summary>
        /// <param name="arg">Decide next sleeping time.</param>
        /// <returns>Seconds the service must sleeep.</returns>
        public abstract int GetServiceSleepTime(ServiceSchedulerArgs arg);

    }
}

